{extend name="layout/base" /}

{block name="title"}入驻人联系方式 - 商家入驻 - {mall:config name="mall.sitename"/}{__block__}{/block}

{block name="meta"}
{__block__}
<link rel="stylesheet" href="__ADDON__/__STYLE__/css/shopapply.css">
<link rel="stylesheet" href="__CDN__/assets/libs/nice-validator/dist/jquery.validator.css">
<link rel="stylesheet" href="__CDN__/assets/libs/bootstrap-daterangepicker/daterangepicker.css">
<link rel="stylesheet" href="__CDN__/assets/libs/bootstrap-select/dist/css/bootstrap-select.min.css">
<link rel="stylesheet" href="__CDN__/assets/libs/fastadmin-selectpage/selectpage.css">
<style>
    ul.list-inline{
        border-bottom: none;
    }
</style>
{/block}

{block name="main"}
<div class='container' id="content-container">
	<div id="stepflex" class="stepflex">
       <dl class="first doing">
          <dt class="s-num">1</dt>
          <dd class="s-text">签订入驻协议</dd>
          <dd></dd>
       </dl>
       <dl class="normal doing">
          <dt class="s-num">2</dt>
          <dd class="s-text">入驻人联系方式</dd>
          <dd></dd>
       </dl>
       <dl class="normal doing">
          <dt class="s-num">3</dt>
          <dd class="s-text">公司证照信息</dd>
       </dl>
       <dl class="normal">
          <dt class="s-num1">4</dt>
          <dd class="s-text1">财务及基本信息</dd>
       </dl>
       <dl class="normal">
          <dt class="s-num1">5</dt>
          <dd class="s-text1">店铺信息</dd>
       </dl>
       <dl class="last">
          <dt class="s-num1">6</dt>
          <dd class="s-text1">入驻审核</dd>
       </dl>
    </div>
    <div class='mall-clear'></div>
    <div class='main-head'>公司信息</div>
    <div class='apply-box'>

        <form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="/addons/mall/shop/joinStep3">
            {:token()}
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Businesslicencetype')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <select id="c-businessLicenceType" class="form-control" name="row[businessLicenceType]">
                        {foreach name="businesslicencetypeList" item="vo"}
                        <option value="{$key}" {in name="key" value="$apply.businessLicenceType"}selected{/in}>{$vo}</option>
                        {/foreach}
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Businesslicence')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-businessLicence" data-rule="required" class="form-control" name="row[businessLicence]" type="text" value="{$apply.businessLicence}">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Legalpersonname')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-legalPersonName" data-rule="required" class="form-control" name="row[legalPersonName]" type="text" value="{$apply.legalPersonName}">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Businessareapath')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-businessAreaPath" data-rule="required" class="form-control" name="row[businessAreaPath]" type="hidden" value="{$apply.businessAreaPath}">
                    <div class="col-xs-3">
                        <input data-params='{"custom[pid]":"0"}' id="c-businessArea1" data-source="/user/mall/oper/area/selectpage" class="form-control selectpage" placeholder="{:__('Category L1')}" type="text">
                    </div>
                    <div class="col-xs-3">
                        <input id="c-businessArea2" data-source="/user/mall/oper/area/selectpage" class="form-control selectpage" placeholder="{:__('Category L2')}" type="text">
                    </div>
                    <div class="col-xs-3">
                        <input id="c-businessArea3" data-source="/user/mall/oper/area/selectpage" class="form-control selectpage" placeholder="{:__('Category L3')}" type="text">
                    </div>
                    <div class="col-xs-3">
                        <input id="c-businessArea4" data-source="/user/mall/oper/area/selectpage" class="form-control selectpage" placeholder="{:__('Category L4')}" type="text">
                    </div>

                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Licenseaddress')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-licenseAddress" data-rule="required" class="form-control" name="row[licenseAddress]" type="text" value="{$apply.licenseAddress}">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Establishmentdate')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-establishmentDate" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[establishmentDate]" type="text" value="{$apply.establishmentDate}" data-tip="" data-rule="required datetime">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Businessstartdate')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <span class="col-xs-12 col-sm-4"><input id="c-businessStartDate" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[businessStartDate]" type="text" value="{$apply.businessStartDate}" data-tip="" data-rule="required datetime"></span>
                    <span class="col-xs-12 col-sm-1 text-center"> - </span>
                    <span class="col-xs-12 col-sm-4"><input id="c-businessEndDate" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[businessEndDate]" type="text" value="{$apply.businessEndDate}" data-tip="" data-rule="datetime" {if $apply['LongbusinessDateis']==1}style="display:none"{/if}></span>
                    <label class="col-xs-12 col-sm-2"><input type='checkbox' name='row[LongbusinessDateis]' id='c-LongbusinessDateis' onclick='showHide(this.checked?0:1,"#c-businessEndDate")' {if $apply['LongbusinessDateis']==1}checked{/if} value='1'/>{:__('Longbusinessdateis')}</label>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Registeredcapital')}(万元):</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-registeredCapital" data-rule="required" class="form-control" name="row[registeredCapital]" max="99999999999" min="1" type="number" value="{$apply.registeredCapital}">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Empiricalrange')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <textarea name="row[empiricalRange]" data-rule="required" id="c-empiricalRange" class="form-control" data-rule="required" rows="5" data-tip="" >{$apply.empiricalRange}</textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Legalcertificatetype')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <select id="c-legalCertificateType" class="form-control" name="row[legalCertificateType][]">
                        {foreach name="legalcertificatetypeList" item="vo"}
                        <option value="{$key}" {in name="key" value="$apply['legalCertificateType']"}selected{/in}>{$vo}</option>
                        {/foreach}
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Legalcertificate')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-legalCertificate" data-rule="required" class="form-control" name="row[legalCertificate]" type="text" value="{$apply.legalCertificate}">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Legalcertificatestartdate')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <span class="col-xs-12 col-sm-4"><input id="c-legalCertificateStartDate" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[legalCertificateStartDate]" type="text" value="{$apply.legalCertificateStartDate}" data-tip="" data-rule="required datetime"></span>
                    <span class="col-xs-12 col-sm-1 text-center"> - </span>
                    <span class="col-xs-12 col-sm-4"><input id="c-legalCertificateEndDate" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[legalCertificateEndDate]" type="text" value="{$apply.legalCertificateEndDate}" data-tip="" data-rule="datetime" {if $apply['LongbusinessDateis']==1}style="display:none"{/if}></span>
                    <label class="col-xs-12 col-sm-2"><input type='checkbox' name='row[LonglegalCertificateDateis]' id='c-LonglegalCertificateDateis' onclick='showHide(this.checked?0:1,"#c-legalCertificateEndDate")' {if $apply['LonglegalCertificateDateis']==1}checked{/if} value='1'/>{:__('LonglegalCertificateDateis')}</label>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Organizationcode')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-organizationCode" data-rule="required" class="form-control" name="row[organizationCode]" type="text" value="{$apply.organizationCode}">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Organizationcodestartdate')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <span class="col-xs-12 col-sm-4"><input id="c-organizationCodeStartDate" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[organizationCodeStartDate]" type="text" value="{$apply.organizationCodeStartDate}" data-tip="" data-rule="required datetime"></span>
                    <span class="col-xs-12 col-sm-1 text-center"> - </span>
                    <span class="col-xs-12 col-sm-4"><input id="c-organizationCodeEndDate" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[organizationCodeEndDate]" type="text" value="{$apply.organizationCodeEndDate}" data-tip="" data-rule="datetime" {if $apply['LongbusinessDateis']==1}style="display:none"{/if}></span>
                    <label class="col-xs-12 col-sm-2"><input type='checkbox' name='row[LongOrganizationCodeDateis]' id='c-LongOrganizationCodeDateis' onclick='showHide(this.checked?0:1,"#c-organizationCodeEndDate")' {if $apply['LongOrganizationCodeDateis']==1}checked{/if} value='1'/>{:__('LongOrganizationCodeDateis')}</label>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Taxpayertype')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <select id='c-taxpayerType' class='form-control' name="row[taxpayerType]">
                        {volist name="taxpayertypeList" id='vo'}
                        <option value='{$key}' {if $apply['taxpayerType']==$key}selected{/if}>{$vo}</option>
                        {/volist}
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Taxpayerno')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-taxpayerNo" class="form-control" name="row[taxpayerNo]" type="text" value="{$apply.taxpayerNo}"><br/>
                    <span class='tip'>三证合一的，请填写统一社会信用代码</span>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Legalcertificateimg')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <span class='tip'>先上传身份证头像面，再上传国徽面</span><br/>
                    <div class="input-group">
                        <input id="c-legalCertificateimgs" data-rule="required" class="form-control" size="50" name="row[legalCertificateimgs]" type="text" value="{$apply.legalCertificateimgs}">
                        <div class="input-group-addon no-border no-padding">
                            <span><button type="button" id="plupload-legalCertificateimgs" class="btn btn-danger plupload" data-max="2" data-input-id="c-legalCertificateimgs" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-legalCertificateimgs"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                            <span><button type="button" id="fachoose-legalCertificateimgs" class="btn btn-primary fachoose" data-input-id="c-legalCertificateimgs" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                        </div>
                        <span class="msg-box n-right" for="c-legalCertificateimgs"></span>
                    </div>
                    <ul class="apply list-inline plupload-preview" id="p-legalCertificateimgs"></ul>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Businesslicenceimg')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <div class="input-group">
                        <input id="c-businessLicenceimg" data-rule="required" class="form-control" size="50" name="row[businessLicenceimg]" type="text" value="{$apply.businessLicenceimg}">
                        <div class="input-group-addon no-border no-padding">
                            <span><button type="button" id="plupload-businessLicenceimg" class="btn btn-danger plupload" data-input-id="c-businessLicenceimg" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-businessLicenceimg"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                            <span><button type="button" id="fachoose-businessLicenceimg" class="btn btn-primary fachoose" data-input-id="c-businessLicenceimg" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                        </div>
                        <span class="msg-box n-right" for="c-businessLicenceimg"></span>
                    </div>
                    <ul class="apply list-inline plupload-preview" id="p-businessLicenceimg"></ul>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Bankaccountpermitimg')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <div class="input-group">
                        <input id="c-bankAccountPermitimg" data-rule="required" class="form-control" size="50" name="row[bankAccountPermitimg]" type="text" value="{$apply.bankAccountPermitimg}">
                        <div class="input-group-addon no-border no-padding">
                            <span><button type="button" id="plupload-bankAccountPermitimg" class="btn btn-danger plupload" data-input-id="c-bankAccountPermitimg" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-bankAccountPermitimg"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                            <span><button type="button" id="fachoose-bankAccountPermitimg" class="btn btn-primary fachoose" data-input-id="c-bankAccountPermitimg" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                        </div>
                        <span class="msg-box n-right" for="c-bankAccountPermitimg"></span>
                    </div>
                    <ul class="apply list-inline plupload-preview" id="p-bankAccountPermitimg"></ul>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Organizationcodeimg')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <div class="input-group">
                        <input id="c-organizationCodeimg" class="form-control" size="50" name="row[organizationCodeimg]" type="text" value="{$apply.organizationCodeimg}">
                        <div class="input-group-addon no-border no-padding">
                            <span><button type="button" id="plupload-organizationCodeimg" class="btn btn-danger plupload" data-input-id="c-organizationCodeimg" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-organizationCodeimg"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                            <span><button type="button" id="fachoose-organizationCodeimg" class="btn btn-primary fachoose" data-input-id="c-organizationCodeimg" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                        </div>
                        <span class="msg-box n-right" for="c-organizationCodeimg"></span>
                    </div>
                    <ul class="row list-inline plupload-preview" id="p-organizationCodeimg"></ul>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Taxregistrationcertificateimg')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <span class='tip'>请上传税务登记证，复印件加盖公司红章，如“三证合一”，此处请上传营业执照副本电子版。</span><br/>
                    <div class="input-group">
                        <input id="c-taxRegistrationCertificateimgs" class="form-control" size="50" name="row[taxRegistrationCertificateimgs]" type="text" value="{$apply.taxRegistrationCertificateimgs}">
                        <div class="input-group-addon no-border no-padding">
                            <span><button type="button" id="plupload-taxRegistrationCertificateimgs" data-max="3" class="btn btn-danger plupload" data-input-id="c-taxRegistrationCertificateimgs" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-taxRegistrationCertificateimgs"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                            <span><button type="button" id="fachoose-taxRegistrationCertificateimgs" class="btn btn-primary fachoose" data-input-id="c-taxRegistrationCertificateimgs" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                        </div>
                        <span class="msg-box n-right" for="c-taxRegistrationCertificateimgs"></span>
                    </div>
                    <ul class="row list-inline plupload-preview" id="p-taxRegistrationCertificateimgs"></ul>

                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Taxpayerqualificationimg')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <span class='tip'>三证合一地区请上传税务局网站上一般纳税人截图，复印件需加盖公司红章。</span><br/>
                    <div class="input-group">
                        <input id="c-taxpayerQualificationimg" class="form-control" size="50" name="row[taxpayerQualificationimg]" type="text" value="{$apply.taxpayerQualificationimg}">
                        <div class="input-group-addon no-border no-padding">
                            <span><button type="button" id="plupload-taxpayerQualificationimg" class="btn btn-danger plupload" data-input-id="c-taxpayerQualificationimg" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-taxpayerQualificationimg"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                            <span><button type="button" id="fachoose-taxpayerQualificationimg" class="btn btn-primary fachoose" data-input-id="c-taxpayerQualificationimg" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                        </div>
                        <span class="msg-box n-right" for="c-taxpayerQualificationimg"></span>
                    </div>
                    <ul class="row list-inline plupload-preview" id="p-taxpayerQualificationimg"></ul>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Franchiselicenseimgs')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <span class='tip'>最多上传三张</span><br/>
                    <div class="input-group">
                        <input id="c-franchiselicenseimgs" class="form-control" size="50" name="row[franchiselicenseimgs]" type="text" value="{$apply.franchiselicenseimgs}">
                        <div class="input-group-addon no-border no-padding">
                            <span><button type="button" id="plupload-franchiselicenseimgs" class="btn btn-danger plupload" data-input-id="c-franchiselicenseimgs" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-franchiselicenseimgs" data-max="3"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                            <span><button type="button" id="fachoose-franchiselicenseimgs" class="btn btn-primary fachoose" data-input-id="c-franchiselicenseimgs" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                        </div>
                        <span class="msg-box n-right" for="c-franchiselicenseimgs"></span>
                    </div>
                    <ul class="row list-inline plupload-preview" id="p-franchiselicenseimgs"></ul>
                </div>
            </div>
            <div class="form-group layer-footer agreement-bottom">
                <label class="control-label col-xs-12 col-sm-2"></label>
                <div class="col-xs-12 col-sm-8">
                    <button onclick='javascript:location.href="/addons/mall/shop/joinstep2"' type="reset" class="btn btn-default btn-embossed">上一步</button>
                    <button onclick='javascript:location.href="/addons/mall/shop/joinstep4"' type="submit" class="btn btn-success btn-embossed disabled">下一步</button>
                </div>
            </div>
        </form>

    </div>
</div>
{/block}
{block name="js"}
{__block__}
<script charset="utf-8" src="https://map.qq.com/api/js?v=2.exp"></script>
{/block}